home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CMIDI 2.2 / MIDI Manager Estr.r < prev    next >
Encoding:
Text File  |  1994-11-30  |  2.5 KB  |  69 lines  |  [TEXT/KAHL]

  1. /*
  2.  *——— MIDI Manager Estr.r —————————————————————————————————————————
  3.  * These resources create 'Estr' strings which can be used by 
  4.  * the CError methods: SevereMacError and CheckOSError.
  5.  *—————————————————————————————————————————————————————————————————
  6.  */
  7.  
  8. #define midiNoMIDIManagerErr    -249    // ADDED BY PAUL FERGUSON (This isn't a real Mac result code)
  9. #define midiNoClientErr            -250    // no client with that ID found
  10. #define midiNoPortErr            -251    // no port with that ID found
  11. #define midiTooManyPortsErr        -252    // too many ports already installed in the system
  12. #define midiTooManyConsErr        -253    // too many connections made
  13. #define midiVConnectErr            -254    // pending virtual connection created
  14. #define midiVConnectMade        -255    // pending virtual connection resolved
  15. #define midiVConnectRmvd        -256    // pending virtual connection removed
  16. #define midiNoConErr            -257    // no connection exists between specified ports
  17. #define midiWriteErr            -258    // MIDIWritePacket couldn't write to all connected ports
  18. #define midiNameLenErr            -259    // name supplied is longer than 31 characters
  19. #define midiDupIDErr            -260    // duplicate client ID
  20. #define midiInvalidCmdErr        -261    // command not supported for port type
  21.  
  22.  
  23. // Define the type 'Estr' just like a 'STR ' resource.
  24. type 'Estr' {
  25.         pstring;
  26. };
  27.  
  28. resource 'Estr' (midiNoMIDIManagerErr) {
  29.     "No MIDI Manager software found."
  30. };
  31. resource 'Estr' (midiNoClientErr) {
  32.     "MIDI Manager Error. No client with that ID found."
  33. };
  34. resource 'Estr' (midiNoPortErr) {
  35.     "MIDI Manager Error. No port with that ID found."
  36. };
  37. resource 'Estr' (midiTooManyPortsErr) {
  38.     "MIDI Manager Error. Too many ports already installed in the system."
  39. };
  40. resource 'Estr' (midiTooManyConsErr) {
  41.     "MIDI Manager Error. Too many connections made."
  42. };
  43. resource 'Estr' (midiVConnectErr) {
  44.     "MIDI Manager Error. Pending virtual connection created."
  45. };
  46. resource 'Estr' (midiVConnectMade) {
  47.     "Pending virtual connection resolved."        // NOTE: This is normally not a MM error
  48. };
  49. resource 'Estr' (midiVConnectRmvd) {
  50.     "MIDI Manager Error. Pending virtual connection removed."
  51. };
  52. resource 'Estr' (midiNoConErr) {
  53.     "MIDI Manager Error. No connection exists between specified ports."
  54. };
  55. resource 'Estr' (midiWriteErr) {
  56.     "MIDI Manager Error. MIDIWritePacket couldn’t write to all connected ports"
  57. };
  58. resource 'Estr' (midiNameLenErr) {
  59.     "MIDI Manager Error. Name supplied is longer than 31 characters."
  60. };
  61. resource 'Estr' (midiDupIDErr) {
  62.     "MIDI Manager Error. Duplicate client ID."
  63. };
  64. resource 'Estr' (midiInvalidCmdErr) {
  65.     "MIDI Manager Error. Command not supported for port type."
  66. };
  67.  
  68.  
  69.